package com.geek.factory.result;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author chenmin
 * @desc TODO
 * @date 2025/6/8
 */
@Getter
@AllArgsConstructor
public enum ResultEntityEnum {

    SUCCESS(true, "请求处理成功!"),
    FAIL(false, "请求处理失败!"),
    LOGIN_FAIL(false, "登录失败!"),

    UN_AUTHORIZED(false, "未授权"),
    NOT_FOUND(false, "无法找到资源"),
    NOT_ALLOWED(false, "禁止请求该资源"),
    PARAMS_NOT_NULL(false, "参数缺失，请检查参数！"),
    PARAMS_NOT_VALID(false, "参数校验失败，请检查参数！"),
    VALID_ERROR(false, "参数校验失败，请检查参数！"),
    OPERATION_TYPE_ERROR(false, "操作类型错误"),

    TOKEN_IS_NULL(false, "token 不能为空"),
    TOKEN_INVALID(false, "token 已失效"),
    USER_STATE_DISABLE(false, "用户已被禁用，请联系管理员"),
    USER_STATE_DELETE(false, "用户已被删除，请联系管理员");


    private Boolean success;
    private String msg;
}

